let points = (val) =>{
    if(val.length > 12){
        return `${val.substring(0,15)}...`
    }else{
        return val
    }
}
let getJson= (str)=>{ 
    var json = eval('(' + str + ')'); 
    return json; 
} 
let str = (val,num1,num2) => {
    let v = val.substr(num1,num2)
    return v
}
export{
    points,
    getJson,
    str
}